.class public Lcom/xingbook/ecloud/a/b;
.super Landroid/widget/BaseAdapter;


# instance fields
.field private a:Landroid/content/Context;

.field private b:F

.field private c:Ljava/util/ArrayList;


# direct methods
.method public constructor <init>(Landroid/content/Context;F)V
    .locals 1

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/xingbook/ecloud/a/b;->c:Ljava/util/ArrayList;

    iput-object p1, p0, Lcom/xingbook/ecloud/a/b;->a:Landroid/content/Context;

    iput p2, p0, Lcom/xingbook/ecloud/a/b;->b:F

    return-void
.end method


# virtual methods
.method public a(Ljava/util/ArrayList;)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/a/b;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    if-eqz p1, :cond_0

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ecloud/a/b;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/ecloud/a/b;->notifyDataSetChanged()V

    return-void
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/a/b;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/a/b;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge p1, v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ecloud/a/b;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getItemId(I)J
    .locals 2

    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 3

    if-eqz p2, :cond_0

    instance-of v0, p2, Lcom/xingbook/ecloud/e/p;

    if-eqz v0, :cond_0

    move-object v0, p2

    check-cast v0, Lcom/xingbook/ecloud/e/p;

    invoke-virtual {p0, p1}, Lcom/xingbook/ecloud/a/b;->getItem(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/xingbook/ecloud/b/e;

    invoke-virtual {v0, v1}, Lcom/xingbook/ecloud/e/p;->setData(Lcom/xingbook/ecloud/b/e;)V

    :goto_0
    return-object p2

    :cond_0
    new-instance v1, Lcom/xingbook/ecloud/e/p;

    iget-object v0, p0, Lcom/xingbook/ecloud/a/b;->a:Landroid/content/Context;

    iget v2, p0, Lcom/xingbook/ecloud/a/b;->b:F

    invoke-direct {v1, v0, v2}, Lcom/xingbook/ecloud/e/p;-><init>(Landroid/content/Context;F)V

    move-object v0, v1

    check-cast v0, Lcom/xingbook/ecloud/e/p;

    invoke-virtual {p0, p1}, Lcom/xingbook/ecloud/a/b;->getItem(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/xingbook/ecloud/b/e;

    invoke-virtual {v0, v2}, Lcom/xingbook/ecloud/e/p;->setData(Lcom/xingbook/ecloud/b/e;)V

    move-object p2, v1

    goto :goto_0
.end method
